// Copyright (c) 2006 Zorm
// Released under the MIT License

#ifndef COMMON_H
#define COMMON_H
#pragma once

#ifdef UNICODE
#define __STR2WSTR(str) L##str
#define _STR2WSTR(str) __STR2WSTR(str)
#define __FUNC__ _STR2WSTR(__FUNCTION__)
#else
#define __FUNC__ __FUNCTION__
#endif

#define DEBUG_LOG(x) ATH::Instance()->GetLog()->LogEvent(Log::LOG_INFO, TEXT("%s\n"), __FUNC__ TEXT(": ") ##x)
//#define DEBUG_LOG(x)

#define DEBUG_LOGF(x, z) ATH::Instance()->GetLog()->LogEvent(Log::LOG_INFO, TEXT("%s") ##x TEXT("\n"), __FUNC__ TEXT(": "), z)
//#define DEBUG_LOGF(x)

#define STR(x) #x
#define STR2(x) STR(x)
#define MSG(desc) message(__FILE__ "(" STR2(__LINE__) "): " #desc)

#include "VersionNo.h"
#include "Config.h"
#include "GUI\Window.h"
#include "GUI\MainWindow.h"
#include "GUI\Dialog.h"
#include "resource.h"
#include "RadarSites.h"
#include "GUI\AboutDialog.h"
#include "GUI\SelectDialog.h"
#include "Log.h"
#include "libpng\png.h"
#include "GL\GLContext.h"
#include "NIDS\NIDSParser.h"
#include "RadarInformation.h"
#include "RadarManager.h"
#include "ATH.h"
#include "NIDS\AlbersToLatLon.h"

#endif